//.pg-sidebar {
//  min-width: 200px;
//  width: 200px;
//  background-color: #333;
//  display: inline-flex;
//  height: inherit;
//  vertical-align: top;
//  flex-direction: column;
//}

.pg-sidebar-wrapper {

  .space-w-200 {
    width: 200px;
  }
}

.pg-sidebar {
  min-width: 200px;
  width: 200px;
  background-color: #333;
  overflow: hidden;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  position: fixed;
  top: 50px;
  left: 0;
  bottom: 0;
  z-index: $z-index-fixed;

  ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
  }
}

.pg-sidebar-title {
  padding: 0 20px;
  color: $white;
  font-size: 16px;
  font-weight: $font-weight-bolder;
  height: 50px;
  line-height: 50px;
  margin-bottom: 5px;
}

.pg-sidebar .navigation {
  flex-grow: 1;
  cursor: pointer;
  padding-right: 18px;
  margin-right: -18px;
  overflow-x: hidden;
  overflow-y: auto;
  padding-bottom: 50px;

  & > li > span.group-title {
    display: inline-block;
    width: 100%;
    color: #888;
    padding-left: 20px;
    padding-top: 15px;
    line-height: 20px;
    padding-bottom: 5px;
  }

  // 第一层的 li 标签 结构
  & > li {
    transition: height .2s ease;

    a {
      padding-left: 20px;
      height: 37px;
      line-height: 37px;
      display: flex;
      align-items: center;
      width: 100%;
      padding-top: 6px;
      padding-bottom: 6px;
      color: #bbb;
      font-size: $font-size-md;
      font-weight: 700;
      text-decoration: none;
      user-select: none;
      transition: background-color .35s linear, border-color .35s linear;

      span {
        margin-left: 10px;
      }

      span, i {
        transition: color .35s linear;
      }

      &:hover {
        background-color: #444;
      }
    }

    &.active {
      //background-color: #262626;
      a {
        color: #fff;

        i {
          color: $primary;
        }
      }
    }

    // 第二层级的li标签结构
    & > ul > li > a {

      font-weight: $font-weight-base;

      &:before {
        content: '';
        background-color: #666;
        width: 3px;
        height: 3px;
        margin-left: 6px;
        border-radius: 10px;
        display: inline-block;
        vertical-align: middle;
      }

      span {
        margin-left: 17px;
      }
    }
  }

}

// 有子级的 标签样式定义
.pg-sidebar .navigation li.has-ul {

  & > a {
    position: relative;
    padding-right: 20px;
  }

  & > a:after {
    content: "\edc6";
    font-family: icomoon, serif;
    display: block;
    position: absolute;
    color: #bbb;
    top: 50%;
    margin-top: -8px;
    right: 20px;
    line-height: 1;
    transform: rotate(0deg);
    transition: transform .3s ease-in-out;
  }

  & > ul {
    overflow: hidden;
    transition-property: height;
    transition-duration: .2s;
    transition-timing-function: linear;
  }

  // 子级展开后的样式定义
  &.open {
    background-color: #262626;

    & > a {
      color: #fff;

      i {
        color: $primary;
      }
    }

    & > a:after {
      transform: rotate(0deg);
    }
  }

}

.pg-sidebar .footer {
  border-top: 1px solid #262626;
  min-height: 58px;
  text-align: center;
  padding-top: 20px;

  .copyright {
    font-size: 12px;
    color: #797292;
  }
}
